import React from 'react'
import './Button.less'

interface Props {
    value?: String | undefined,
    size?: String,
    position?: String
}

const Switch: React.FC<Props> = (props) => {
    console.log(props)
    const propSizeRange= ['large', 'medium', 'small', 'mini']
    return (
        <div className={["button", props.size && propSizeRange.includes(props.size as string) ? props.size : 'medium'].join(' ')}>
            {props.children}
        </div>
    )
}

export default Switch